<form id="detail-form" class="form-horizontal" role="form" data-toggle="validator" method="POST"
      action="company/detail?ids={$row.id}">
    <div class="form-group">
<!--        <label class="control-label col-xs-12 col-sm-2">UID:</label>-->
        <div class="col-xs-12 col-sm-8">
            <input id="c-user_id" data-rule="required" class="form-control" name="row[user_id]" type="hidden"
                   value="{$row.user_id ?? 0}">
        </div>
    </div>
    <div class="form-group">
<!--        <label class="control-label col-xs-12 col-sm-2">ID:</label>-->
        <div class="col-xs-12 col-sm-8">
            <input id="c-id" data-rule="required" class="form-control" name="row[id]" type="hidden"
                   value="{$row.id ?? 0}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text"
                   value="{$row.name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">社会信用编码:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-code" data-rule="required" class="form-control" name="row[code]" type="text"
                   value="{$row.code|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-license" class="control-label col-xs-12 col-sm-2">营业执照:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-license" data-rule="" class="form-control" size="50" name="row[license]" type="text"
                       value="">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-license" class="btn btn-danger faupload dz-clickable"
                                  data-input-id="c-license"
                                  data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp"
                                  data-multiple="false" data-preview-id="p-license" initialized="true"><i
                            class="fa fa-upload dz-message"></i> 上传</button></span>
                    <span><button type="button" id="fachoose-license" class="btn btn-primary fachoose"
                                  data-input-id="c-license" data-mimetype="image/*" data-multiple="false"><i
                            class="fa fa-list"></i> 选择</button></span>
                </div>
                <span class="msg-box n-right" for="c-license"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-license">
                <li class="col-xs-3"><a href="{$row.license}" data-url="{$row.license}" target="_blank"
                                        class="thumbnail"><img src="{$row.license}"
                                                               onerror="this.src='/dFPTkXNnZp.php/ajax/icon?suffix=jpg';this.onerror=null;"
                                                               class="img-responsive"></a><a href="javascript:;"
                                                                                             class="btn btn-danger btn-xs btn-trash"><i
                        class="fa fa-trash"></i></a></li>
            </ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Address')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-address" class="form-control" name="row[address]" type="text"
                   value="{$row.address|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Other')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-other" class="form-control " rows="5" name="row[other]"
                      cols="50">{$row.other|htmlentities}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">法人:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-leader_name" class="form-control" name="row[leader_name]" type="text"
                   value="{$row.leader_name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">法人手机:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-leader_phone" class="form-control" name="row[leader_phone]" type="text"
                   value="{$row.leader_phone|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">邮箱:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-leader_email" class="form-control" name="row[leader_email]" type="text"
                   value="{$row.leader_email|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">认证时间:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-create_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss"
                   data-use-current="true" name="row[create_time]" type="text" value="{$row.create_time}">
        </div>
    </div>
</form>
<div class="hide layer-footer">
    <label class="control-label col-xs-12 col-sm-2"></label>
    <div class="col-xs-12 col-sm-8">
        <button type="submit" class="btn btn-primary btn-embossed ">{:__('OK')}</button>
        <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
    </div>
</div>
